﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="Wall.aspx.cs" Inherits="CoastalClimbing.Wall" %>

<%@ Register Assembly="System.Web.DataVisualization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
    Namespace="System.Web.UI.DataVisualization.Charting" TagPrefix="asp" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <h1>
        <asp:Label ID="lblWallName" runat="server" /></h1>
    <br />
    <br />
    <asp:Image ID="imgWall" runat="server" />
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder2" runat="server">
    <div id="homePageBottomYellowLink">
        <div id="homePageBottomLeft">
            <span class="twentyFourYellowCentered">Routes (L -> R)</span>
            <br />
            <span class="tinyText">(click route for more info)</span>
            <br />
            <asp:GridView ID="grvRoutes" runat="server" AutoGenerateColumns="false" ShowHeader="false">
                <Columns>
                    <asp:HyperLinkField DataNavigateUrlFormatString="~/Route.aspx?id={0}" DataNavigateUrlFields="ID"
                        DataTextField="NAME" />
                    <asp:BoundField DataField="RATING" />
                </Columns>
            </asp:GridView>
        </div>
        <div id="homePageBottomRight">
            <span class="twentyFourYellowCentered">Route Info</span>
            <br />
            <br />
            Average grade: <asp:Label ID="lblAvgGrade" runat="server" />
            <br />
            Easiest grade: <asp:Label ID="lblEasyGrade" runat="server" />
            <br />
            Hardest grade: <asp:Label ID="lblHardGrade" runat="server" />
            <br />
            Newest route: <asp:HyperLink ID="hyperNewestRoute" runat="server" /> 
            <br /> 
            <asp:Chart ID="chtRoutes" runat="server">
                <Series>
                    <asp:Series Name="Routes" ChartType="Bar" ChartArea="MainChartArea" Palette="Chocolate"></asp:Series>
                </Series>
                <ChartAreas>
                    <asp:ChartArea Name="MainChartArea">
                    </asp:ChartArea>
                </ChartAreas>
            </asp:Chart>          
        </div>
    </div>
</asp:Content>
